package asa;

public class MainThreadPass {
	private boolean done;
	
	public synchronized void waitForIt() throws InterruptedException {
		if (!done) // intentional if
			wait(500);
	}
	
	public synchronized void done() {
		done = true;
		notifyAll();
	}
}
